package com.lancoo.ccas52.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "algorithm")
public class GAConfig {
    //遗传算法的种群数量
    private int populationSize;
    //遗传算法的变异概率
    private double mutationRate;
    //遗传算法的交叉概率
    private double crossoverRate;
    //遗传算法的精英种群数量
    private int elitismCount;
    //竞标赛算法选取个体的数量。用来计算交叉个体
    private int tournamentSize;
    //算法的最大迭代次数
    private int maxGenerations;
    //禁忌搜索算法的禁忌表长度
    private int tabuStepSize;
    //禁忌搜索算法，适应度多少次之后没有发生变化，需要进行抖动
    private int shuffleNum;
    //禁忌算法，邻域的大小，默认是10
    private int neighborHoodSize;
}
